<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.19"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Simple TDMA implementation for OMNeT++: TdmaMac Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Simple TDMA implementation for OMNeT++
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.19 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a> &#124;
<a href="class_tdma_mac-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">TdmaMac Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
Inheritance diagram for TdmaMac:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_tdma_mac.png" alt=""/>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a2d8fa1a933a8bea8f6b56757ecef624a"><td class="memItemLeft" align="right" valign="top"><a id="a2d8fa1a933a8bea8f6b56757ecef624a"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setSchedule</b> (vector&lt; int &gt; newSchedule)</td></tr>
<tr class="separator:a2d8fa1a933a8bea8f6b56757ecef624a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:a16ad83205779b2c7978cb701539d0d96"><td class="memItemLeft" align="right" valign="top"><a id="a16ad83205779b2c7978cb701539d0d96"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>initialize</b> (int stage) override</td></tr>
<tr class="separator:a16ad83205779b2c7978cb701539d0d96"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a376fbf37f354cbae135313a2af93ed11"><td class="memItemLeft" align="right" valign="top"><a id="a376fbf37f354cbae135313a2af93ed11"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>handleUpperPacket</b> (Packet *packet) override</td></tr>
<tr class="separator:a376fbf37f354cbae135313a2af93ed11"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a61b36f526928bf3b68d6472f8cb4abad"><td class="memItemLeft" align="right" valign="top"><a id="a61b36f526928bf3b68d6472f8cb4abad"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>handleSelfMessage</b> (cMessage *message) override</td></tr>
<tr class="separator:a61b36f526928bf3b68d6472f8cb4abad"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aedad7079ac7333d0a5b6fe98f33c6ff6"><td class="memItemLeft" align="right" valign="top"><a id="aedad7079ac7333d0a5b6fe98f33c6ff6"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>acked</b> (Packet *frame) override</td></tr>
<tr class="separator:aedad7079ac7333d0a5b6fe98f33c6ff6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a00f9214fdf139c71d4bab9e654f0067a"><td class="memItemLeft" align="right" valign="top"><a id="a00f9214fdf139c71d4bab9e654f0067a"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>receiveSignal</b> (cComponent *source, simsignal_t signalID, intval_t value, cObject *details) override</td></tr>
<tr class="separator:a00f9214fdf139c71d4bab9e654f0067a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a245fb5857ff63ec6b43958cf385cb1a9"><td class="memItemLeft" align="right" valign="top"><a id="a245fb5857ff63ec6b43958cf385cb1a9"></a>
simtime_t&#160;</td><td class="memItemRight" valign="bottom"><b>getNextTransmissionSlot</b> ()</td></tr>
<tr class="separator:a245fb5857ff63ec6b43958cf385cb1a9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9abcb6ff25771df5968e1de2214d1ba7"><td class="memItemLeft" align="right" valign="top"><a id="a9abcb6ff25771df5968e1de2214d1ba7"></a>
simtime_t&#160;</td><td class="memItemRight" valign="bottom"><b>getFirstSlotInNextFrame</b> ()</td></tr>
<tr class="separator:a9abcb6ff25771df5968e1de2214d1ba7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0c9989007aa92a5bcac9b816d1f3bd72"><td class="memItemLeft" align="right" valign="top"><a id="a0c9989007aa92a5bcac9b816d1f3bd72"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>hasGrant</b> ()</td></tr>
<tr class="separator:a0c9989007aa92a5bcac9b816d1f3bd72"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a92dc7dfd4bb5ac3f3aace61551559c4c"><td class="memItemLeft" align="right" valign="top"><a id="a92dc7dfd4bb5ac3f3aace61551559c4c"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>hasFutureGrant</b> ()</td></tr>
<tr class="separator:a92dc7dfd4bb5ac3f3aace61551559c4c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr class="memitem:a17b932e0e84c7b083e45b184b5375f04"><td class="memItemLeft" align="right" valign="top"><a id="a17b932e0e84c7b083e45b184b5375f04"></a>
<a class="el" href="class_tdma_scheduler.html">TdmaScheduler</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>scheduler</b> = nullptr</td></tr>
<tr class="separator:a17b932e0e84c7b083e45b184b5375f04"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a89168f5a05259c393380b3119006b5eb"><td class="memItemLeft" align="right" valign="top"><a id="a89168f5a05259c393380b3119006b5eb"></a>
vector&lt; int &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>schedule</b></td></tr>
<tr class="separator:a89168f5a05259c393380b3119006b5eb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae8ddee894b35e3aa802678947bae60c6"><td class="memItemLeft" align="right" valign="top"><a id="ae8ddee894b35e3aa802678947bae60c6"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>nodeId</b></td></tr>
<tr class="separator:ae8ddee894b35e3aa802678947bae60c6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a96b640c97ade6839bc0de56f440eaca7"><td class="memItemLeft" align="right" valign="top"><a id="a96b640c97ade6839bc0de56f440eaca7"></a>
double&#160;</td><td class="memItemRight" valign="bottom"><b>slotDuration</b></td></tr>
<tr class="separator:a96b640c97ade6839bc0de56f440eaca7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aad6b6f6d7cd9ffdc564089d0dd9ced98"><td class="memItemLeft" align="right" valign="top"><a id="aad6b6f6d7cd9ffdc564089d0dd9ced98"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>frameLength</b></td></tr>
<tr class="separator:aad6b6f6d7cd9ffdc564089d0dd9ced98"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a07f8a3030f7a5bd118d02cb478cba6fd"><td class="memItemLeft" align="right" valign="top"><a id="a07f8a3030f7a5bd118d02cb478cba6fd"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>currentTransmissionAttemps</b> = 0</td></tr>
<tr class="separator:a07f8a3030f7a5bd118d02cb478cba6fd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3de8d15f3adc777e189ff8e83f7b50e9"><td class="memItemLeft" align="right" valign="top"><a id="a3de8d15f3adc777e189ff8e83f7b50e9"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>numRetries</b></td></tr>
<tr class="separator:a3de8d15f3adc777e189ff8e83f7b50e9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6b970c17686d7bb5abba65ba65506465"><td class="memItemLeft" align="right" valign="top"><a id="a6b970c17686d7bb5abba65ba65506465"></a>
cMessage *&#160;</td><td class="memItemRight" valign="bottom"><b>transmissionSelfMessage</b> = nullptr</td></tr>
<tr class="separator:a6b970c17686d7bb5abba65ba65506465"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>src/mac/<a class="el" href="_tdma_mac_8h_source.html">TdmaMac.h</a></li>
<li>src/mac/TdmaMac.cc</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="http://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.8.19
</small></address>
</body>
</html>
